package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.controller.system.service.chartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author Emma Li
 * @date 2020/12/23 - 16:42
 */
@RestController
@RequestMapping("/system/chart")
public class chartController {
    @Autowired
    chartService chartService;

    @GetMapping("/list")
    public AjaxResult chartList(){
        Map<String,Object> query=chartService.getData();
        System.out.println(query);
        return AjaxResult.success(query);
    }
}
